import Vue from "vue";
import VueI18n from "vue-i18n";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
// import enLocale from "element-ui/lib/locale/lang/en";
// import zhLocale from "element-ui/lib/locale/lang/zh-CN";
// import ElementLocale from "element-ui/lib/locale";
import App from "./App.vue";
import router from "./router";
import store from "./store";

//创建自定义语言包，与组件语言包合并
// const messages = {
//   en: {
//     messages: "hello",
//     ...enLocale
//   },
//   zh: {
//     messages: "你好",
//     ...zhLocale
//   }
// };

// //创建VueI18n instance
// const i18n = new VueI18n({
//   locale: "en", //set local
//   messages,
// });

// ElementLocale.i18n((key, value) => i18n.t(key, value));

Vue.config.productionTip = true;
//https://www.cnblogs.com/veritas-sj/p/9272902.html
Vue.use(VueI18n);
Vue.use(ElementUI);

// Vue.config.lang = "zh-cn";
// Vue.locale("zh-cn", zhLocale);
// Vue.locale("en", enLocale);
//Vue.use(ElementUI,{size:'small',zIndex:3000});

new Vue({
  router,
  store,
  //i18n,
  render: h => h(App)
}).$mount("#app");
